/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package util;

import java.awt.Color;
import java.util.Random;

/**
 *
 * @author pol
 */
public class RandomColor {

    public static Color nextColor() {
        red = rand.nextFloat();
        green = rand.nextFloat();
        blue = rand.nextFloat();
        Color randomColor = new Color(red, green, blue);
        
        return randomColor;
    }
//    private static Color randomColor;
    private static Random rand = new Random();
    private static float red;
    private static float green;
    private static float blue;
}
